package cn.jilian.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import cn.jilian.entity.BaseEntity;

@Entity
@Table(name="bt_mace",uniqueConstraints = @UniqueConstraint(name="maceUniqueByFidAndUid",columnNames = {"fid", "uid"}))
public class Mace extends BaseEntity{
	
	public static final int MENU_MACE_RANK=210701;
	
	public static final Long META_ROLE_MENU=100021106L;
	
	public static final Long META_USER_MENU=100021108L;
	
	public static final Long META_MODEL_MENU=100021107L;
	
	
	public Mace() {
		
	}
	
	public Mace(Long fid,Long uid,Integer act,Integer rank,Long meta) {
		this.setFid(fid);
		this.setUid(uid);
		this.setAct(act);
		this.setRank(rank);
		this.setMeta(meta);
	}
	

	@Column(name="fid")
	private Long fid;
	
	private Long uid;
	
	private Integer rank;
	
	@Column(name="act")
	private Integer act=1;
	
	private Integer flag;
	
	private Long meta;
	
	private Date tims;


	public Long getFid() {
		return fid;
	}

	public void setFid(Long fid) {
		this.fid = fid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public Integer getAct() {
		return act;
	}

	public void setAct(Integer act) {
		this.act = act;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Long getMeta() {
		return meta;
	}

	public void setMeta(Long meta) {
		this.meta = meta;
	}

	public Date getTims() {
		return tims;
	}

	public void setTims(Date tims) {
		this.tims = tims;
	}
	
}
